package com.shrcl.engineerprocess.domain.impl;

import com.shrcl.engineerprocess.domain.TrainingNotification;
import com.shrcl.engineerprocess.domain.TrainingNotificationDAO;
import com.shrcl.engineerprocess.domain.impl.TrainingNotificationImpl;
import edu.fudan.mylang.pf.BaseDAOService;
import org.eclipse.xtext.xbase.lib.ObjectExtensions;
import org.eclipse.xtext.xbase.lib.Procedures.Procedure1;
import org.springframework.stereotype.Service;

@Service("com.shrcl.engineerprocess.domain.TrainingNotificationDAO")
public class TrainingNotificationDAOImpl extends BaseDAOService<TrainingNotification> implements TrainingNotificationDAO {
  public TrainingNotification create(final Procedure1<? super TrainingNotification> init) {TrainingNotification trainingNotification=TrainingNotificationImpl.create(getObjectFactory());
    final Procedure1<TrainingNotification> _function = new Procedure1<TrainingNotification>() {
        public void apply(final TrainingNotification it) {
          init.apply(it);
          it.start();
        }
      };
    TrainingNotification _doubleArrow = ObjectExtensions.<TrainingNotification>operator_doubleArrow(trainingNotification, _function);
    return _doubleArrow;
  }
}
